##################################################################################
## Company: fpgaPublish
## Engineer: f
##
## Create Date: 2025\04\14 20:47:35
## Design Name: view_eyes_octave
## Module Name:
## Project Name:
## Target Devices:
## Tool Versions:
## Description:
##
## Dependencies:
##
## Revision:
## Revision 0.01 - File Created
## Additional Comments:
##
##################################################################################

addpath("./calculate_mdle");
# --------------------------------------------------------------------------------
# 清理环境
clear all;
close all;

# --------------------------------------------------------------------------------
# 创建初始化参数配置
bar = waitbar(0,'load...');  %Creat process bar

GPU_CUDA_PATH = "D:/library_v8/fpga/p1_view_eyes/view_eyes_pa_core3/view_eyes_cuda/x64/Debug/view_eyes_cuda.exe";
GPU_HIP_PATH = "D:/g_library8/fpga/p1_view_eyes/view_eyes_pa_core2/view_eyes_hip/Debug/HIP clang 6.2/view_eyes_hip.exe";
computer_name = getenv("COMPUTERNAME");
if (computer_name == "SWORD")
  GPU_PATH = GPU_CUDA_PATH;
else
  GPU_PATH = GPU_HIP_PATH;
end

CURRENT_DIR = pwd();

waitbar(1);
close(bar);

# --------------------------------------------------------------------------------
# 加载对应的GPU函数
CMD_RUN_GPU_INFO = strcat(GPU_PATH," gpu_info",' "',CURRENT_DIR,'" > NUL');
system(CMD_RUN_GPU_INFO);


# ----------------------------------------------------------------------------------
# 加载GPU函数
r1 = gemv_calculate([1 2 3 4; 1 2 3 4;2 3 4 5],[1 2 3 4])




